import { post } from '@/request/http'
import store from '@/store'

//竞价仲裁 接口

// 列表数据接口
export const arbitrationListByCode = (data) =>
  post(
    '/FTKJWLHYPT/arbitration/arbitrationList',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            arbitrationMode:"JJ",
            arbitrationContent:data.arbitrationContent,
            arbitrationType:data.arbitrationType,
            // ctyeCityId:data.ctyeCityId,
          }
        },
        PageIndex: {
          FTKJWLHYPT: data.PageIndexs
        },
        PageSize: {
          FTKJWLHYPT: data.PageSizes
        }
      }
    }
  )
  //新增
export const addArbitrationJ = (data) =>
post(
  '/FTKJWLHYPT/arbitration/addArbitration',
  {
    Data: {
      Parameters: {
        FTKJWLHYPT: {
            arbitrationType:data.arbitrationType,
            arbitrationContent:data.arbitrationContent,
            contactDetails:data.contactDetails,
            creator: store.state.user.USR_CODE_DX_H,
            fltUuid:store.state.user.FLT_UUID_DX_H,
            arbitrationMode:data.arbitrationMode,
            created:data.created,
        }
      },
    }
  }
)
//审核
export const auditAuctionArbitration = (data) =>
  post(
    '/FTKJWLHYPT/arbitration/auditArbitration',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            arbitrationId: data.arbitrationId,
            fltUuid: store.state.user.FLT_UUID_DX_H,
            auditOpinon: data.auditOpinon,
            editor: store.state.user.USR_CODE_DX_H
          }
        },
      }
    }
  )